function XForms_input(params){
  XForms_Core.call(this, params);
  var binding = this.getBinding();
  var control = this;
  if(this.$element){
    this.$element.val(this.getValue());
    this.$element.change(function(){
      control.setValue($(this).val());
    });
  }
  this.onRefresh=function(){
    this.$element.val(this.getValue());
  }
  this.onRefreshRelevant=function(){
    var relevant = this.getBinding().evalAttribute("relevant");
    var $container = this.$element.parents(".xforms_input");
    if(relevant) {
      $container.removeClass("xforms_nonvisible");
    } else {
      $container.addClass("xforms_nonvisible");
    }
    this.bubleEvent("xforms-refresh-relevant");
  }
}
